package com.itheima.reggie.common;

/**
 * Created by IntelliJ IDEA.
 * User: 许志民
 * Date: 2021-11-24
 */

public class BeasContext {
    private static ThreadLocal<Long> tl = new ThreadLocal<>();

    public static void setCurrentId(Long id){
        tl.set(id);
    }

    public static Long getCurrentId(){
        return tl.get();
    }
}
